package com.newspublish.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newspublish.system.entity.system.Collect;
import com.newspublish.system.entity.system.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface CollectMapper extends BaseMapper<Collect> {

    //根据用户获取所有收藏
    List<News> selectByUsername(@Param("user") String user);

}
